//超期扣罚香港


/**
 * 撤回申诉申请
 * @param id  扣罚记录id
 * @param appealId 申诉记录id
 */
function withdrawAppeal(id,appealId) {
    if (isEmpty(id)  ||  isEmpty(appealId)) {
        DGG.Layer.message("未获取到申诉id，请刷新页面", {icon: '1'});
        return false;
    }

    DGG.Layer.confirm('确定撤回扣罚申诉吗？', {'title': '操作'}, function () {
        DGG.Layer.loading.start();
        $.ajax({
            url: sysInfo.basePath + "/flsc/nodeOverdue/withdrawAppeal.do",
            type: "post",
            dataType: "json",
            data: {
                "id": id,
                "appealId": appealId
            },
            success: function (data) {
                DGG.Layer.loading.done();
                //撤回失败
                if (data.code == 1) {
                    DGG.Layer.message(data.msg, {icon: '0'});
                } else {
                    DGG.Layer.message(data.data, {icon: '1'});
                    dataTableReload();
                }
            }
        })
    });
}


/**
 * 继续进行扣罚申诉
 * @param id  扣罚记录id
 * @param appealId  申诉记录id
 */
function continueAppeal(id,appealId) {
    if (isEmpty(id)  || isEmpty(appealId)) {
        DGG.Layer.message("未获取到申诉id，请刷新页面", {icon: '1'});
        return false;
    }

    DGG.Layer.loading;
    DGG.Layer.open(sysInfo.basePath + '/flsc/nodeOverdue/deductionAppealHtml.html?id='+ id+"&appealId="+appealId, {
        title: '扣罚申诉申请',
        area: ['700px', '80%'],
        btn: "",
        success: function(layero, index){
            DGG.Layer.loading.done();
        }
    });

}




/**
 * 打开退单审核页面
 * @param id  扣罚记录id
 * @param appealId  申诉记录id
 */
function deductionAppealReview(id,appealId) {
    if (isEmpty(id)  || isEmpty(appealId)  ) {
        DGG.Layer.message("未获取到申诉id，请刷新页面", {icon: '1'});
        return false;
    }
    DGG.Layer.loading.start();
    DGG.Layer.open(sysInfo.basePath + "/flsc/nodeOverdue/reviewHtml.html?id=" + id+"&appealId="+appealId, {
        title: '扣罚申诉审核',
        area: ['900px', '90%'],
        btn: "",
        success: function(layero, index){
            DGG.Layer.loading.done();
        }
    });
}


/**
 * 打开扣罚申诉申请页面
 * @param id  扣罚记录id
 */
function deductionAppeal(id) {
    if(!id){
        DGG.Layer.message("未获取到扣罚记录id，请刷新页面", {icon: '1'});
        return false;
    }
    DGG.Layer.loading;
    DGG.Layer.open(sysInfo.basePath + '/flsc/nodeOverdue/deductionAppealHtml.html?id='+ id, {
        title: '扣罚申诉申请',
        area: ['700px', '80%'],
        btn: "",
        success: function(layero, index){
            DGG.Layer.loading.done();
        }
    });



}